package com.learn.swagger.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 用户
 *
 * @author zhousiqi
 * @version 1.0.0
 * @date 2019/2/26 13:22
 */
@Getter
@Setter
@ApiModel(value = "用户类", description = "用户类的描述信息", parent = Base.class)
public class User extends Base {
    private static final long serialVersionUID = -7498843577563936802L;

    @ApiModelProperty(value = "学校", required = true)
    @NotEmpty(message = "学校不能为空")
    private String school;

    @ApiModelProperty(value = "年龄")
    @NotNull(message = "年龄不能为空")
    private Integer age;
}
